package com.example.myandroidapp1;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.WebView;

import com.example.myandroidapp1.activity.AbstractBaseActivity;
import com.example.myandroidapp1.client.MyWebViewClient;

@SuppressLint("SetJavaScriptEnabled") 
public class FullScreenBrowser extends AbstractBaseActivity {

	private WebView browser;

	private static final String URL = "http://www.sothebys.com";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
		
		setContentView(R.layout.fullscreenbrowser);
		
		
		browser = (WebView) findViewById(R.id.wvFullBrowser);
		browser.getSettings().setJavaScriptEnabled(true);
		browser.getSettings().setAllowFileAccess(true);
		browser.setWebViewClient(new MyWebViewClient());
		browser.loadUrl(URL);
	}
}
